using System;
using System.Collections.Generic;
using Me.Prettyprint.Cassandra.Utils;
using Me.Prettyprint.Hector.Api;

namespace Me.Prettyprint.Hector.Api.Beans
{
	/// <summary>
	/// Wrapper for composite columns in Cassandra
	/// </summary>
	[Serializable]
	public class Composite : AbstractComposite
	{
        public Composite() : base(false)
        {
        }
        public Composite(List<object> list)
            : base(false, list)
        {
        }
        public static Composite fromByteBuffer(ByteBuffer byteBuffer)
        {
            Composite composite = new Composite();
            composite.Deserialize(byteBuffer);
            return composite;
        }
        public static ByteBuffer ToByteBuffer(List<object> objects)
        {
            Composite composite = new Composite(objects);
            return composite.Serialize();
        }
	}
}